<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>hello</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
    <div id="app">
        <h1>{{message}}</h1>
        <h2>{{student.name}} -- {{student.age}}</h2>
    </div>
    <script>
        const { createApp } = Vue;//对象结构

        createApp({
            data(){
                return{
                    message:'Hello Vue!',
                    student:{
                        name:'jack',
                        age:19
                    }
                }
            }
        }).mount('#app')
    </script>
</body>
</html>